<form id="app-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label">支付app_id</label>
        <div class="layui-input-block">
            <input type="text" name="wx_pay_app_id" class="layui-input" lay-verify="required" placeholder="请输入支付 app_id" value="{:sysconfig('weixin','wx_pay_app_id')}">
            <tip>填写微信小程序app_id。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商户号</label>
        <div class="layui-input-block">
            <input type="text" name="wx_pay_mch_id" class="layui-input" lay-verify="required" placeholder="请输入微信支付商户号" value="{:sysconfig('weixin','wx_pay_mch_id')}">
            <tip>填写微信小程序secret。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付密钥</label>
        <div class="layui-input-block">
            <input type="text" name="wx_pay_key" class="layui-input" lay-verify="required" placeholder="请输入微信支付密钥" value="{:sysconfig('weixin','wx_pay_key')}">
            <tip>填写微信支付密钥。</tip>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">cert.pem证书</label>
        <div class="layui-input-block">
            <div class="layui-upload-drag" id="uploadCert">
                <i class="layui-icon"></i>
                <p>点击上传，或将文件拖拽到此处</p>
            </div>
            <div class="layui-hide" id="uploadDemoView">
                <i class="layui-icon layui-icon-file-b" style="font-size: 40px"></i>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">key.pem证书</label>
        <div class="layui-input-block">
            <div class="layui-upload-drag" id="uploadCertKey">
                <i class="layui-icon"></i>
                <p>点击上传，或将文件拖拽到此处</p>
            </div>
            <div class="layui-hide" id="uploadDemoViewKey">
                <i class="layui-icon layui-icon-file-b" style="font-size: 40px"></i>
            </div>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>